<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class QueryManager</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Interface QueryManager</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This interface encapsulates methods for the management of search queries.</p>
<p class="description"><p>Provides methods for the creation and retrieval of search queries.</p></p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright &amp;copy; 2004-2005, Domain51</li>
				<li><span class="field">author:</span> PHP - Travis Swicegood &lt;<a href="mailto:travis@domain51.net">travis@domain51.net</a>&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_query_QueryManager_interface_php.html">/query/QueryManager.interface.php</a> (line <span class="field">36</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">object
 A</span>
										<a href="#createQuery" title="details" class="method-name">createQuery</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$statement</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$language</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">object
 A</span>
										<a href="#getQuery" title="details" class="method-name">getQuery</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getSupportedQueryLanguages" title="details" class="method-name">getSupportedQueryLanguages</a>
										()
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodcreateQuery" id="createQuery"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">createQuery</span> (line <span class="line-number">57</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates a new query by specifying the query statement itself and the  language in which the query is stated.</p>
<p class="description"><p>If the query statement is syntactically invalid, given the language  specified, an <a href="../phpContentRepository/Exceptions/InvalidQueryException.html">InvalidQueryException</a> is thrown.</p><p>$language must specify a query language from among those  returned by <a href="../phpContentRepository/QueryManager.html#methodgetSupportedQueryLanguages">QueryManager::getSupportedQueryLanguages()</a>; if it does  not then an <a href="../phpContentRepository/Exceptions/InvalidQueryException.html">InvalidQueryException</a> is thrown.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Query.html">Query</a> object.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/InvalidQueryException.html">InvalidQueryException</a>    If statement is invalid or language is unsupported.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 A</span>
		<span class="method-name">
			createQuery
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$statement</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$language</span>)
			</div>
	
		
		
	</div>
<a name="methodgetQuery" id="getQuery"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getQuery</span> (line <span class="line-number">78</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Retrieves an existing persistent query.</p>
<p class="description"><p>If $absPath is not the path of a valid persisted query an  <a href="../phpContentRepository/Exceptions/InvalidQueryException.html">InvalidQueryException</a> is thrown.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Query.html">Query</a> object.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/InvalidQueryException.html">InvalidQueryException</a>    If absPath is not the path of a valid persisted query or if    another error occurs.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/Query.html#methodsave">Query::save()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 A</span>
		<span class="method-name">
			getQuery
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$absPath</span><span class="var-description">: The absolute path of a persisted query.</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetSupportedQueryLanguages" id="getSupportedQueryLanguages"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getSupportedQueryLanguages</span> (line <span class="line-number">87</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array of integers identifying the supported query languages.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/QueryLanguage.html">QueryLanguage</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getSupportedQueryLanguages
		</span>
				()
			</div>
	
		
		
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 31 Dec 2004 10:15:21 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>